export const successToast = (text) => {
  wx.showToast({
    title: text,
    icon: 'success'
  })
}

export const toast = (text) => {
  wx.showToast({
    title: text,
    icon: 'none'
  })
}

export const loading = (text) => {
  wx.showToast({
    title: text,
    icon: 'loading',
    mask: true,
    duration: 100000
  })
}

export const hide = () => {
  wx.hideToast()
}
